<%= render "base" %>
<%= content_for :open_graph do %>
    <%= og_title(@page.title)%>
    <%= og_description(@page.body)%>
    <%= og_image( "http://#{Setting.domain}" + asset_path("big_logo.png"))%>
<% end %>
<div id="page_show" class="box">
  <% if !@page.locked or admin? %>
    <div class="info">
      版本 <%= render_page_version(@page) %>， <%= t("common.last_modified_at")%> <%= render_page_updated_at(@page) %>
      <%= render_edit_page_button(@page)  if can? :edit, @page %>
    </div>
  <% end %>
  <div style="text-align:right;">
    <%= render :partial => "common/share", :locals => {:title => @page.title,  :url => "http://#{Setting.domain}" + page_path(@page) } %>
  </div>

  <div class="wikistyle">
    <%= raw @page.body_html %>
  </div>
  <div class="editors">
    <h3><%= t("pages.wiki_page_contributors")%></h3>
    <div>
      <% @page.editors.each do |item| %>
        <%= user_avatar_tag(item, :small) %>
      <% end %>
    </div>
  </div>
</div>
<div id="comments">
  <%= render_cell :comments, :index, :commentable => @page, :current_user => current_user, :title => "评论" %>
</div>